﻿#region

using xConnected.Core.Interfaces.Paging;
using xConnected.Core.Interfaces.Service;
using xConnected.Core.Model;
using xConnected.Core.Model.ViewModel.xConnected.Core.Model.ViewModel;

#endregion

namespace xConnected.Service
{
    public partial class PositionService : BaseService<Position>, IPositionService
    {
        #region IPositionservice Members

        //public IPage<Position> GetAllPaged(int industryId = 0, int categoryId = 0, int technologyId = 0, int companyId = 0, int userId = 0, int pageIndex = 0,
        //                       int pageSize = 10)
        //{
        //    return Repository.GetAllPaged(industryId, categoryId, technologyId, companyId, userId, pageIndex, pageSize);
        //}

        //public IPage<Position> GetAllPagedSearched(int userId = 0, string search = "", int pageIndex = 0,
        //                                          int pageSize = 10)
        //{
        //    return Repository.GetAllPagedSearched(userId, search, pageIndex, pageSize);
        //}
        //public IPage<Position> GetAllByCategory(int id, int userId = 0, int pageIndex = 0, int pageSize = 10)
        //{
        //    return Repository.GetAllByCategory(id, userId, pageIndex, pageSize);
        //}

        //public IPage<Position> GetAllByCompany(int id, int userId = 0, int pageIndex = 0, int pageSize = 10)
        //{
        //    return Repository.GetAllByCompany(id, userId, pageIndex, pageSize);
        //}

        //public IPage<Position> GetAllByCategorySearch(int id, int userId = 0, string search = "", int pageIndex = 0,
        //                                             int pageSize = 10)
        //{
        //    return Repository.GetAllByCategorySearch(id, userId, search, pageIndex, pageSize);
        //}

        //public IPage<Position> GetAllByCompanySearch(int id, int userId = 0, string search = "", int pageIndex = 0,
        //                                            int pageSize = 10)
        //{
        //    return Repository.GetAllByCompanySearch(id, userId, search, pageIndex, pageSize);
        //}

        //public IPage<Position> GetAllByCompanyAndCategory(int categoryId, int companyId, int userId = 0,
        //                                                 int pageIndex = 0, int pageSize = 10)
        //{
        //    return Repository.GetAllByCompanyAndCategory(categoryId, companyId, userId, pageIndex, pageSize);
        //}

        //public IPage<Position> GetAllByCompanyAndCategorySearch(int categoryId, int companyId, int userId = 0,
        //                                                       string search = "", int pageIndex = 0, int pageSize = 10)
        //{
        //    return Repository.GetAllByCompanyAndCategorySearch(categoryId, companyId, userId, search, pageIndex,
        //                                                       pageSize);
        //}

        public IPage<Position> AdvancedPagedSearchedAll(AdvancedSearchModelPosition position)
        {
            return Repository.AdvancedPagedSearchedAll(position);
        }

        public IPage<Position> AdvancedPagedSearchedSome(AdvancedSearchModelPosition position)
        {
            return Repository.AdvancedPagedSearchedSome(position);
        }

       
        #endregion
    }
}